package cn.lg.soar.general.cloud;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "cn.lg.soar.**.feign")
@EnableCaching // 使能缓存
@EnableTransactionManagement // 使能事务
@MapperScans(
        @MapperScan("cn.lg.soar.**.mapper")
)
@SpringBootApplication
public class SoarGeneralApplication {

    public static void main(String[] args) {
        SpringApplication.run(SoarGeneralApplication.class, args);
    }

}
